package com.hellogood.yaohuo.shared.services;

import java.util.List;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.hellogood.yaohuo.shared.entity.Group;

@RemoteServiceRelativePath("GroupService")
public interface GroupService extends RemoteService {
	public static class Util {
		private static GroupServiceAsync instance;

		public static GroupServiceAsync getInstance() {
			if (instance == null) {
				instance = GWT.create(GroupService.class);
			}
			return instance;
		}
	}

	public List<Group> getAllGroupList();
	
	public String deleteGroup(String code);
	
	public String createGroup(Group group);
}
